
// 校验驱动配置
function validataDriverConfig($this){
	var driverConfig = {};
	var connector = $this.find("select[name='connector']").find(":selected").val();
	driverConfig.connector=connector;
	switch (connector) {
	case ConnectorConstantMysql:
		//校验Sql，返回null意味着校验失败
		if(validateMysqlDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantOracle:
		//校验Sql，返回null意味着校验失败
		if(validateOracleDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantSqlServer:
		//校验数据库，返回null意味着校验失败
		if(validateSqlServerDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantSqlMysql:
		//校验Sql，返回null意味着校验失败
		if(validateSqlMysqlDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantSqlOracle:
		//校验Sql，返回null意味着校验失败
		if(validateSqlOracleDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantLdap:
		//校验LDAP
		if(validateLdapDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantRedis:
		//校验Redis
		if(validateRedisDriverConfig(driver, $this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantSourceWebService:
		//校验数据源XML
		if(validateWebServiceDriverConfig($this, driverConfig)==null){
			return false;
		}
		driverConfig.connector=ConnectorConstantWebService;
		break;
	case ConnectorConstantTargetWebService:
		//校验目标源XML
		if(validateWebServiceDriverConfig($this, driverConfig)==null){
			return false;
		}
		driverConfig.connector=ConnectorConstantWebService;
		break;
	default:
		break;
	}
	return driverConfig;
}